home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / dejagnu.lha / dejagnu-1.0.1 / tcl / doc / StrMatch.3 < prev    next >
Text File  |  1993-02-14  |  1KB  |  40 lines

  1. '\"
  2. '\" Copyright 1989 Regents of the University of California
  3. '\" Permission to use, copy, modify, and distribute this
  4. '\" documentation for any purpose and without fee is hereby
  5. '\" granted, provided that this notice appears in all copies.
  6. '\" The University of California makes no representations about
  7. '\" the suitability of this material for any purpose.  It is
  8. '\" provided "as is" without express or implied warranty.
  9. '\" 
  10. .so man.macros
  11. .HS Tcl_StringMatch tcl
  12. .BS
  13. .SH NAME
  14. Tcl_StringMatch \- test whether a string matches a pattern
  15. .SH SYNOPSIS
  16. .nf
  17. \fB#include <tcl.h>\fR
  18. .sp
  19. int
  20. \fBTcl_StringMatch\fR(\fIstring\fR, \fIpattern\fR)
  21. .SH ARGUMENTS
  22. .AP char *string in
  23. String to test.
  24. .AP char *pattern in
  25. Pattern to match against string.  May contain special
  26. characters from the set *?\e[].
  27. .BE
  28.  
  29. .SH DESCRIPTION
  30. .PP
  31. This utility procedure determines whether a string matches
  32. a given pattern.  If it does, then \fBTcl_StringMatch\fR returns
  33. 1.  Otherwise \fBTcl_StringMatch\fR returns 0.  The algorithm
  34. used for matching is the same algorithm used in the ``string match''
  35. Tcl command and is similar to the algorithm used by the C-shell
  36. for file name matching;  see the Tcl manual entry for details.
  37.  
  38. .SH KEYWORDS
  39. match, pattern, string
  40.